package com.om.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class LandingPageActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.landing_page);        
        
        
        Thread timer = new Thread(){
            public void run(){
                try{
                    sleep(2000);
                } catch (InterruptedException e){
                    e.printStackTrace();
                }finally{
                	Intent i = new Intent(LandingPageActivity.this, HomePageActivity.class);
                    startActivity(i);
                }
            }
        };

        timer.start();
    }
    
    @Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
        finish();
    }
}
